package com.qumitech.visualnovel.datasource.console;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.console.DataQueryRolePermissionDO;

public interface DataQueryRolePermissionDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DataQueryRolePermissionDO record);

    int insertSelective(DataQueryRolePermissionDO record);

    DataQueryRolePermissionDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DataQueryRolePermissionDO record);

    int updateByPrimaryKey(DataQueryRolePermissionDO record);

    void delPermissions(@Param("roleId") Integer roleId);

    void addPermissions(@Param("roleId") Integer roleId, @Param("permissionIdList") List<Integer> permissionIdList);
}